package com.broad.commerce.code.models;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * @author stephen
 * @version V1.0
 * @date 2022-02-18 15:39
 * @description: EntityFieldDTO
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Builder
@Accessors(chain = true)
public class EntityFieldDTO {
	@NotEmpty(message = "属性名不能为空")
	private String fieldName;
	@NotEmpty(message = "属性类型全类名不能为空")
	private String fieldTypeName;
	private String fieldComment;
	private Boolean required;//是否必填
	private Object defaultValue;//默认值
	private Integer length;
}
